import Vue from 'vue'
import Vuex from 'vuex'

Vue.use(Vuex)

export default new Vuex.Store({
  state: {
    Count:undefined,
    moveHeight:undefined,
    Totalprice:0,
    ScendSwap:undefined,
  },
  getters: {
    newTotal(state){
      return state.Totalprice;
    }
  },
  mutations: {
    setMove(state,newmove){
      state.moveHeight=newmove;
    },
    setCount(state,newCount){
      state.Count=newCount;
    },
    setTotal(state,newTotal){
      state.Totalprice=newTotal;
    },
    setScendSwap(state,newScendSwap){
      state.ScendSwap=newScendSwap;
    }

  },
  actions: {
  },
  modules: {
  }
})
